
#include <iostream>
#include <stdlib.h>
using namespace std;

class Box
{
    public:
        Box(int,int,int);
        int volume();
    private:
        int hour;
        int minute;
        int sec;
};
Box::Box(int h,int w,int len)
{
    hour=h;
    minute=w;
    sec=len;
}
int Box::volume()
{
    return hour*minute*sec;
}
int main(){
    Box box1(2,3,4);
    cout<<"the volume of box1 is:"<<box1.volume()<<endl;
    Box box2(5,3,4);
    cout<<"the volume of box2 is:"<<box2.volume()<<endl;
    system("pause");
    return 0;
}
